import request from '@/utils/request'

// 查询奖项规则列表
export function listAwardsRule(query) {
  return request({
    url: '/project/awardsRule/list',
    method: 'get',
    params: query
  })
}

// 查询奖项规则详细
export function getAwardsRule(id) {
  return request({
    url: '/project/awardsRule/' + id,
    method: 'get'
  })
}

// 新增奖项规则
export function addAwardsRule(data) {
  return request({
    url: '/project/awardsRule',
    method: 'post',
    data: data
  })
}

// 修改奖项规则
export function updateAwardsRule(data) {
  return request({
    url: '/project/awardsRule',
    method: 'put',
    data: data
  })
}

// 删除奖项规则
export function delAwardsRule(id) {
  return request({
    url: '/project/awardsRule/' + id,
    method: 'delete'
  })
}
